﻿using System.Collections.Generic;
using System.Data.Entity;

namespace Moonwish.Core.DataAccess
{
    public abstract class EntityCommand<T> where T : class
    {
        protected readonly DbContext DbContext;
        protected readonly List<T> Items;
        protected readonly string UserId;

        protected EntityCommand(DbContext dbContext, List<T> items, string userId)
        {
            DbContext = dbContext;
            Items = items;
            UserId = userId;
        }

        public abstract void Execute();
    }
}
